package com.jse.oo.design.pattern.creational.builder;

public class Card {
	private Machine machine;
	private Wheel wheel;
	private String name;

	public Card() {
	}


	public static class Builder {
		private Card card = new Card();
		
		public Builder(Machine machine, Wheel wheel) {
			card.setMachine(machine);
			card.setWheel(wheel);
		}
		
		public Card build() {
			return card;
		}
	}

	public Machine getMachine() {
		return machine;
	}

	public void setMachine(Machine machine) {
		this.machine = machine;
	}

	public Wheel getWheel() {
		return wheel;
	}

	public void setWheel(Wheel wheel) {
		this.wheel = wheel;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
